<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-type" class="form-control form-control" name="row[type]" type="number" value="{$row.type}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage form-control" name="row[user_id]" type="text" value="{$row.user_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_box_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_box_id" data-rule="required" data-source="user/box/index" class="form-control selectpage form-control" name="row[user_box_id]" type="text" value="{$row.user_box_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_no" class="form-control form-control" name="row[order_no]" type="text" value="{$row.order_no}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Freight_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-freight_price" class="form-control form-control" step="0.01" name="row[freight_price]" type="number" value="{$row.freight_price}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_price" class="form-control form-control" step="0.01" name="row[goods_price]" type="number" value="{$row.goods_price}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Score_discount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-score_discount" class="form-control form-control" step="0.01" name="row[score_discount]" type="number" value="{$row.score_discount}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_discount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_discount" class="form-control form-control" step="0.01" name="row[coupon_discount]" type="number" value="{$row.coupon_discount}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Other_discount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-other_discount" class="form-control form-control" step="0.01" name="row[other_discount]" type="number" value="{$row.other_discount}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Real_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-real_price" class="form-control form-control" step="0.01" name="row[real_price]" type="number" value="{$row.real_price}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_pay')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_pay" class="form-control form-control" name="row[is_pay]" type="number" value="{$row.is_pay}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_type" class="form-control form-control" name="row[pay_type]" type="number" value="{$row.pay_type}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_no" class="form-control form-control" name="row[pay_no]" type="text" value="{$row.pay_no}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_price" class="form-control form-control" step="0.01" name="row[pay_price]" type="number" value="{$row.pay_price}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_at')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_at" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_at]" type="text" value="{$row.pay_at}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Give_score')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-give_score" class="form-control form-control" name="row[give_score]" type="number" value="{$row.give_score}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Discount_score_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discount_score_num" class="form-control form-control" name="row[discount_score_num]" type="number" value="{$row.discount_score_num}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_id" data-rule="required" data-source="coupon/index" class="form-control selectpage form-control" name="row[coupon_id]" type="text" value="{$row.coupon_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-desc" class="form-control  form-control" rows="5" name="row[desc]" cols="50">{$row.desc}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-status" class="form-control form-control" name="row[status]" type="number" value="{$row.status}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_deleted')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_deleted" class="form-control form-control" name="row[is_deleted]" type="number" value="{$row.is_deleted}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
